<?php
namespace Admin\Controller;
use Think\Controller;

class BaseController extends Controller {
    public function __construct($check_login = true) {
        parent::__construct();
        if ($check_login && !isWebLogin()) {
//            重定向到指定的URL地址
            redirect('/shuidifudao/admin/login/index/', 0, '页面跳转中...');
        }
    }

    public function verify_c() {
        $Verify = new \Think\Verify();
        $Verify->fontSize = 18;
        $Verify->length = 4;
        $Verify->useNoise = false;
        $Verify->codeSet = '0123456789';
        $Verify->imageW = 130;
        $Verify->imageH = 50;
        //$Verify->expire = 600;
        $Verify->entry();
    }
}